package com.qjs.yonth.webService;

import java.io.StringWriter;
import java.math.BigDecimal;
import java.net.URL;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;


public class test1 {

	public static void main(String[] args) {
		try{
		
			 System.setProperty ("jsse.enableSNIExtension", "false");	 
			SslUtils.ignoreSsl();   
	        URL url = new URL("https://119.40.68.115:444/INTERSHOP/servlet/WFS/Axis2/BoschAA-Site/WSProcessOrder_Bosch?wsdl");
//	    	QName serverName=WSProcessOrderBosch.SERVICE;
//	    	WSProcessOrderBosch server=new WSProcessOrderBosch(url,serverName);
//	    	server.setHandlerResolver(new RequestHandler());
//	    	WSProcessOrderBoschPortType port=server.getWSProcessOrderBoschHttpSoap11Endpoint();
//	    	BindingProvider bindingProvider = (BindingProvider) port;
//	    	bindingProvider.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,url.toString());
			}catch(Exception e){
				e.printStackTrace();
				System.out.println("error:"+e.getMessage());
			}
	}
	
	
	public static String getXml(Object data,Class obj) throws JAXBException{
		JAXBContext ctx=JAXBContext.newInstance(obj);
       Marshaller mar=ctx.createMarshaller();
       StringWriter sw=new StringWriter();
       mar.marshal(data, sw);
       return sw.toString();
	}
}
